RCBasic Android Setup

This is a guide for setting up RCBasic Studio to build for android.

Step 1 - Install Java Development Kit (recommended version is JDK 21)

Step 2 - Download Android SDK Command-line tools

Step 3 - Extract the command line tools to a directory that does not have spaces in the path

Step 4 - Set an environment variable called ANDROID_HOME that points to the command-line tools folder.

Step 5 - Download RCBasic_Android project from the itch.io page and extract it to the dist folder in RCBasic4
	NOTE: The extracted folder should be called rcbasic_android. If it isn't, then rename it to rcbasic_android.
	
Step 6 - Run the init_android_sdk.sh script. It automates installing the SDK packages needed to build your APK.

Step 7 - Go into the config folder in RCBasic and open rcbasic_edit.config

Step 8 - On the line that has "ANDROID_HOME=", set the variable to the path of the command-line tools directory.

Step 9 - You should now be able to open an RCBasic Studio project, go to Tools->Distribute and set Android as your target platform.
	NOTE: You will also need to set the app id and keystore in the android settings tab.
